<template>
	<view class="customeBox">
		<!-- 数据查看 -->
		<view class="seeBox" @click="seeClick">
			数据查看
		</view>
		<view class="typeContent">
			<view class="typeList" v-for="(item,index) in contentList" :key="index" @click="datailsClick(item)">
				<view class="typeCtime">
					上传时间：{{item.createtime}}
				</view>
				<view class="tyName">
					<view class="tyName1">
						活动名称：
					</view>
					<view class="tyName2">
						{{item.activity_name}}
					</view>
				</view>
				<view class="tyBudget">
					<view class="tyBudget1">
						店铺名称：
					</view>
					<view class="tyBudget2">
						{{item.shop_name}}
					</view>
				</view>
				<view class="tyIntention">
					<view class="tyIntention1">
						线索：
					</view>
					<view class="tyIntention2">
						{{item.name}}
					</view>
				</view>
			</view>
			
		</view>
		
		
	</view>
</template>

<script>
	import {
		filList
	} from '@/request/api.js'
	export default {
		data() {
			return {
				contentList: [], //假数据
				cate: 2,
			};
		},
		onLoad(option) {
			this.cate = option.id
			this.onlodeList()
		},
		onShow() {

		},
		methods: {
			onlodeList() {
				filList({
					type: 1,
					user_id: uni.getStorageSync("regionMessage").id,
					cate: 2,
				}).then(res => {
					console.log(res);
					this.contentList = res.data.data
					uni.showToast({
						title: res.msg,
						icon: "none"
					})
				})
			},
			datailsClick(item) {
				console.log("eeee");
				uni.navigateTo({
					// url:'/pagesA/DLR/salesDataDetails'
					url: '/pagesA/DLR/administration?id=' + item.id
				})
			},
			//销售数据查看
			seeClick(){
				uni.navigateTo({
					url:'/pages/groundPole/groundMine/saleSee'
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #FFFFFF;
	}

	.customeBox {
		width: 100%;
		box-sizing: border-box;
		padding-bottom: 40rpx;
		overflow: hidden;
		position: relative;
	
	.typeContent {
			width: 100%;
			overflow: hidden;

			.typeList {
				width: 670rpx;
				// height: 330rpx;
				box-sizing: border-box;
				margin: 40rpx auto 0;
				border-bottom: 1px solid #EEEFF0;
				padding-bottom: 20rpx;
				box-shadow: 0rpx 0rpx 14rpx 0rpx rgba(211, 213, 220, 0.4);
				border-radius: 24rpx;
				.typeCtime {
					display: flex;
					justify-content: space-between;
					font-size: 26rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #313233;
					height: 70rpx;
					line-height: 70rpx;
					padding: 0 24rpx;
					border-bottom: 1px solid #EEEFF0;
					

					.tyStatus {
						width: 90rpx;
						height: 36rpx;
						background: #1855F6;
						border-radius: 18rpx;
						font-size: 22rpx;
						font-family: PingFang SC;
						font-weight: 500;
						color: #F5F5F5;
						line-height: 36rpx;
						text-align: center;
						margin-top: 25rpx;
						margin-right: 24rpx;
					}

					.tyStatusA {
						width: 90rpx;
						height: 36rpx;
						background: #F69518;
						border-radius: 18rpx;
						font-size: 22rpx;
						font-family: PingFang SC;
						font-weight: 500;
						color: #F5F5F5;
						line-height: 36rpx;
						text-align: center;
						margin-top: 25rpx;
						margin-right: 24rpx;
					}

					.tyStatusB {
						width: 90rpx;
						height: 36rpx;
						background: #F61861;
						border-radius: 18rpx;
						font-size: 22rpx;
						font-family: PingFang SC;
						font-weight: 500;
						color: #F5F5F5;
						line-height: 36rpx;
						text-align: center;
						margin-top: 25rpx;
						margin-right: 24rpx;
					}
				}

				.tyName {
					margin-left: 25rpx;
					display: flex;
					margin-top: 54rpx;

					.tyName1 {
						color: #313233;
						font-size: 36rpx;
						// margin-right: 161rpx;
						min-width: 200rpx;
					}

					.tyName2 {
						color: #313233;
						font-size: 36rpx;
					}
				}

				.tyBudget {
					margin-left: 25rpx;
					display: flex;
					margin-top: 54rpx;

					.tyBudget1 {
						color: #313233;
						font-size: 36rpx;
						// margin-right: 161rpx;
						min-width: 200rpx;
					}

					.tyBudget2 {
						color: #313233;
						font-size: 36rpx;
					}
				}

				.tyIntention {
					margin-left: 25rpx;
					display: flex;
					margin-top: 54rpx;

					.tyIntention1 {
						color: #313233;
						font-size: 36rpx;
						min-width: 200rpx;
						// margin-right: 89rpx;
					}

					.tyIntention2 {
						color: #313233;
						font-size: 36rpx;
					}
				}
			}
		}
	}
	.seeBox{
		width: 260rpx;
		height: 80rpx;
		background-color: #1855F6;
		border-radius: 40rpx 0rpx 0rpx 40rpx;
		font-size: 36rpx;
		font-family: PingFang SC;
		font-weight: 500;
		z-index: 9999;
		position: fixed;
		top: 110rpx;
		right: 0;
		line-height: 80rpx;
		text-align: center;
		color: #FFFFFF;
		
	}
</style>
